home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Amiga Format CD 41
/
Amiga Format CD41 (1999-06)(Future Publishing)(GB)[!][issue 1999-07].iso
/
-seriously_amiga-
/
graphics
/
sviewii
/
arexx-scripts
/
dooperation.rx
< prev
next >
Wrap
Text File
|
1999-04-19
|
1KB
|
69 lines
/*
$VER: DoOperation.rx V8.00 (22.7.98)
© 1997-98 by Andreas R. Kleinert
This script demonstrates loading, proecessing and saving
a graphics by using SViewII's ARexxPort.
*/
address command
SViewII "-INSTALL_APPMENU=FALSE -INSTALL_APPICON=FALSE"
say ""
say "ARexx: SViewII has been started : Waiting a moment..."
wait 5
OPTIONS RESULTS
SIGNAL ON ERROR
SVIIPORT = 'SViewII.rx'
SVNGPORT = 'SViewNG.rx'
SVPORT = 'SuperView.rx'
IF ~SHOW('P',SVPORT) THEN SVPORT = SVNGPORT
IF ~SHOW('P',SVPORT) THEN SVPORT = SVIIPORT
IF ~SHOW('P',SVPORT) THEN DO
say "Could not locate ARexx port of SViewII !"
CALL ErrorOut 0
END
ADDRESS VALUE SVPORT
say "ARexx: Loading a PCX Graphics via the LOAD command"
'LOAD=TEST.PCX'
say "ARexx: Processing Graphics"
'SVOPERATOR=Scale50'
'ACTION'
say "ARexx: Saving Graphics as PCX"
'SAVE_TYPE=PCX V2.5-3.0'
'SAVE=TEST-OP.PCX'
address command wait 3
say "ARexx: Load this PCX Gfx now for control"
'SHOW=TEST-OP.PCX'
say "ARexx: O.K. : Let's quit !"
address command Wait 2
'QUIT'
CALL ErrorOut 0
/* Errorout procedure ----------------------- */
ErrorOut:
PARSE ARG ExitCode
EXIT ExitCode
END